'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 地图boss结点
 * @author sundbcn@gmail.com (sun debing)
 */

var moment = require('moment');
var mongoose = require('mongoose');

/**
 * boss item
 * @type {mongoose}
 */
var mapBossItemSchema = new mongoose.Schema({
    // 道路坐标
    road_id: {
        type: Number,
        required: true
    },

    // boss类型
    boss_type: {
        type: Number,
        required: true
    }
});

if (!mapBossItemSchema.options.toJSON) {
    mapBossItemSchema.options.toJSON = {};
}
/* jshint unused:false */
mapBossItemSchema.options.toJSON.transform = function (doc, ret) {
    delete ret._id;
    delete ret.__v;
};

module.exports = mapBossItemSchema;
